<?php

// php里所有的打印都会返还给ajax前端
// echo 11;
// echo 22;
// print_r($_GET);
$username = $_GET['username'];
$pwd = $_GET['pwd'];
if($username=="张三" && $pwd==123){
	$arr['info'] = "用户名密码正确";
	$arr['status'] = 1;
	// echo "<script>window.location.href='1.ajax01.html'; </script>";
}else{
	// echo "<script>alert('用户名或者密码错误'); window.location.href='1.ajax01.html'; </script>";
	$arr['info'] = "用户名或者密码错误";
	$arr['status'] = 0;
}

// print_r($arr);

// 跳转到
echo json_encode($arr);

?>